package com.fanpan26.thread.print;

/**
 * @author fanpan26
 */
public class ThreadPrintA implements Runnable {

    PrinterThree printerThree;

    public ThreadPrintA(PrinterThree three){
        this.printerThree = three;
    }


    @Override
    public void run() {
        for (int i=0;i<100;i++) {
            try {
                printerThree.print(0);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
